package com.cms.intelligent_control.app

import android.os.Bundle
import android.os.Environment
import androidx.appcompat.app.AppCompatActivity
import com.cms.intelligent_control.R
import com.cms.intelligent_control.views.SuperFileView
import java.io.File

class DisplayFileActivity : AppCompatActivity() {

    private lateinit var mSuperFileView: SuperFileView

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        super.setContentView(R.layout.activity_display_file)
        mSuperFileView = findViewById(R.id.super_file_view)

        mSuperFileView.displayFile(
            File(
                Environment.getExternalStorageDirectory().path + "/360/test.pptx"
            )
        )
    }
}